<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
  <meta charset="UTF-8">
  <title>Admin</title>
</head>
<form  method="post" th:action="@{/submit_stu_info}" >
       <input type="hidden" name="stuId" th:value="${session.studentInfo.stuId}" readonly="true" ><br>
  学号：<input type="text" name="stuNumber" th:value="${session.studentInfo.stuNumber}" readonly="true"><br>
  姓名：<input type="text" name="stuName" th:value="${session.studentInfo.stuName}" ><br>
<!--  性别：<input type="text" name="usrName" th:value="${session.studentInfo.stuSex}" ><br>-->
  性别： <select th:value="${session.studentInfo.stuSex}" name="stuSex">
    <option th:selected="${session.studentInfo.stuSex}=='男'" value="男">男</option>
    <option th:selected="${session.studentInfo.stuSex}=='女'" value="女">女</option>
  </select><br>
  <label style="color: red" th:text="${stuMsg}" th:if="${not #strings.isEmpty(stuMsg)}"></label>
  <input type="submit" value="修改">
</form>

</body>
</html>